package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCaching
@SpringBootApplication //启动类
@MapperScan("com.itheima.reggie.mapper")  // 扫描mybatis接口创建代理对象
@EnableTransactionManagement    //开启事务注解支持
@Slf4j  //开启日志记录
public class WebManageApplication {
        //运行当前启动类,初始化springboot环境(ioc容器)
            public static void main(String[] args) {
                SpringApplication.run(WebManageApplication.class,args);
                log.info("日志-项目启动成功");
                log.info("lucy分支编写测试代码");
            }
}
